package com.itheima.service.db.impl;


import com.itheima.domain.combat.Dimension;
import com.itheima.mapper.DimensionMapper;
import com.itheima.service.db.DimensionService;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@Service
public class DimensionServiceImpl implements DimensionService {
    @Autowired
    private DimensionMapper dimensionMapper;
    //根据灵魂的id查询维度
    @Override
    public List<Dimension> findDimension(Integer id) {
        List<Dimension> dimensionList = dimensionMapper.findDimensionBySoulId(id);
        return dimensionList;
    }
}
